/*
 *  MTouchware_application.h
 *
 *  data structures used in MTouchWare for application control.
 *
 *  Copyright (C) 2010 LIMSI-CNRS (Orsay-France) and EFREI (Paris-France)
 *
 *  Authors: Rami Ajaj, Nicolas Flasque and Frederic Vernier.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation; either version 2.1 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  $Id$
 */
#ifndef _MTOUCHWARE_APPLICATION_H_
#define _MTOUCHWARE_APPLICATION_H_

#include "MTouchware_touch.h"


typedef enum
{
    RAW_DATA            = 1<<0,
    STATIONARY          = 1<<1,
    FILTER_MEAN         = 1<<2,
    SHAKE_ON_RELEASE    = 1<<3
} t_services;

///< structure to handle input data and output data, compacted to ease use with liblo (callback only allow one void *parameter)
///< so we will give the whole application data to lo_methods
typedef struct
{
    char            source[50];
    t_tuio_format   tuioformat;

    t_tab_touches   input;
    t_tab_touches   output;

    long            hasToSend;
    lo_address      lo_sender;

    t_services      appServices;

} t_applicationData;

void initAppData(t_applicationData *);
void setAppLoSender(t_applicationData *, lo_address);
void debugDisplay(t_applicationData *);


#endif // _MTOUCHWARE_APPLICATION_H_
